# Reference: https://postmarketos.org/uipkg
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=postmarketos-ui-console
pkgver=0.1
pkgrel=6
pkgdesc="Console environment, with no graphical/touch UI"
url="https://postmarketos.org/"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	dnsmasq
	postmarketos-base-ui
	postmarketos-base-ui-networkmanager
	wireless-tools
	"
options="!check" # No testsuite
subpackages="$pkgname-openrc:_openrc"

package() {
	mkdir -p "$pkgdir"
}

_openrc() {
	install_if="$pkgname=$pkgver-r$pkgrel openrc"
	install="$subpkgname.post-install $subpkgname.post-upgrade"
	depends="networkmanager-openrc"
	mkdir -p "$subpkgdir"
}
